//


#import "UIView+Categroys.h"

@implementation UIView (Categroys)

- (void)am_rounded:(CGFloat)cornerRadius {
    self.layer.cornerRadius = cornerRadius;
    self.layer.masksToBounds = YES;
}


+ (NSString *)am_randomNumber
{
    const int count =6;
    NSString * sourceString=@"123478956";
    NSMutableString *re=[[NSMutableString alloc]init];
    for (int i = 0; i < count; i++) {
        unsigned index=rand()%[sourceString length];
        NSString * s=[sourceString substringWithRange:NSMakeRange(index, 1)];
        [re appendString:s];
    }
    return re;
}


@end
